import request from '@/utils/request'

// 查询计生人员列表
export function listFamily_planning_person(query) {
  return request({
    url: '/report/family_planning_person/list',
    method: 'get',
    params: query
  })
}

// 查询计生人员详细
export function getFamily_planning_person(id) {
  return request({
    url: '/report/family_planning_person/' + id,
    method: 'get'
  })
}

// 新增计生人员
export function addFamily_planning_person(data) {
  return request({
    url: '/report/family_planning_person',
    method: 'post',
    data: data
  })
}

// 修改计生人员
export function updateFamily_planning_person(data) {
  return request({
    url: '/report/family_planning_person',
    method: 'put',
    data: data
  })
}

// 删除计生人员
export function delFamily_planning_person(id) {
  return request({
    url: '/report/family_planning_person/' + id,
    method: 'delete'
  })
}
